while True:
    try:
        n = int(input())
        lst = []
        for i in range(n):
            lst.append(int(input()))
        lst = sorted(list(set(lst)))
        for i in lst:
            print(i)
    except:
        break
